![]() |
PATH![]() |
Configuring the interface or interfaces of a device is done with the USBConfigureInterface function.
The USBConfigureInterface function sets the interface on the device, and opens each pipe in the interface. The number of pipes opened is returned. It can also be used to set an alternate interface on the device.
This function does not currently operate as defined above. It does not set the device interface, it will in the future. At this time, the class driver must call the USBDeviceRequest function and make a set_interface device request to set the device interface. The driver can then call USBConfigureInterface to open the pipes in the interface and get the number of pipes. If required, an alternate interface can be specified upon entry in the usbOther field.
OSStatus USBConfigureInterface(USBPB *pb);
Required fields in the USBPB parameter block for the USBConfigureInterface function are
If information about an individual pipe or other element is needed, a device request has to be made.
Configuring an already opened interface is not an error. This sets the alternate and flags settings for the interface. It also invalidates any pipe references you are using.
Errors returned by the USBConfigureInterface function include
Previous | Back Up One Level | Next |